﻿package	birdry.display	{
	
	import flash.display.StageScaleMode;
	import flash.display.StageAlign;
	import flash.display.Sprite;
	
	
	/*
	ex)
	var stageSet:StageSet = new StageSet();
	stageSet.align = StageSet.ALIGN_LEFT;
	stageSet.scaleMode = StageSet.SCALE_NO_SCALE;
	stageSet.showDefaultContextMenu = false	
	*/
	
	public class StageSet	{
		
		var _obj:Object;
		
		public static const SCALE_EXACT_FIT:String = "exactFit";
		public static const SCALE_NO_BORDER:String = "noBorder";
		public static const SCALE_NO_SCALE:String = "noScale";
		public static const SCALE_SHOW_ALL:String = "showAll";
		
		public static const ALIGN_BOTTOM:String = "B";
		public static const ALIGN_BOTTOM_LEFT:String = "BL";
		public static const ALIGN_BOTTOM_RIGHT:String = "BR";
		public static const ALIGN_LEFT:String = "L";
		public static const ALIGN_RIGHT:String = "R";
		public static const ALIGN_TOP:String = "T";
		public static const ALIGN_TOP_LEFT:String = "TL";
		public static const ALIGN_TOP_RIGHT:String = "TR";
		
		public function StageSet(obj: Object): void	{
			super();
			_obj = obj;
			_obj.stage.scaleMode = StageScaleMode.NO_SCALE;
			_obj.stage.align = StageAlign.TOP_LEFT
			_obj.stage.showDefaultContextMenu = false;
		}
		
		public function get scaleMode(): String	{
			return _obj.stage.scaleMode;
		}
		public function set scaleMode(value: String): void	{
			_obj.stage.scaleMode = value;
		}
		
		public function get align(): String	{
			return _obj.stage.align;
		}
		public function set align(value: String): void	{
			_obj.stage.align = value;
		}
		
		public function get showDefaultContextMenu(): Boolean	{
			return _obj.stage.showDefaultContextMenu;
		}
		public function set showDefaultContextMenu(value: Boolean): void	{
			_obj.stage.showDefaultContextMenu = value;
		}
	}
}	// package